
with open('xulie.txt','r',encoding='utf-8') as file:
	xulie = file.read().split('\n')
	xulie.pop(-1)
	print(xulie)

blank = 'KB'
parallel = 'px'
QC = 'HJ'
staAdd = 'JB'
midpoint = 'CCV'

blank_num = 0
parallel_num = 0
QC_num = 0
staAdd_num = 0
midpoint_num = 0



for i in range(len(xulie)):
	if(blank in xulie[i]):
		blank_num+=1
	if(parallel in xulie[i]):
		parallel_num+=1
	if(QC in xulie[i]):
		QC_num+=1
	if (staAdd in xulie[i]):
		staAdd_num+=1
	if (midpoint in xulie[i]):
		midpoint_num+=1

sample_num = len(xulie) - blank_num - parallel_num - QC_num - staAdd_num - midpoint_num

print(
'blank_num:',blank_num,
'parallel_num:',parallel_num,
'QC_num:',QC_num,
'staAdd_num:',staAdd_num,
'midpoint_num:',midpoint_num,
'sample_num:',sample_num
)
